package com.hackintosh.observer.trade;

import java.util.ArrayList;
import java.util.List;

/**
 * @description：汇率
 * @author：twislyn
 * @date：Created in 2021/05/27
 * @modified By：
 * @version: 1.0
 */
public abstract class Rate {
    protected List<Company> companies = new ArrayList<>();

    public void add(Company company){
        companies.add(company);
    }

    public void remove(Company company){
        companies.remove(company);
    }

    public abstract void change(int number);
}
